package run;


import mathtools.Complex;
import gates.*;
import register.Register;

public class ToffoliTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//Factory.functional=false;
		Factory.cnotmatrix=true;
		Register r = new Register(3);		
		r.setElement(0,0,new Complex(1));
		r.setElement(0,2,new Complex(1));
		
		r.normalise();
		System.out.println(r.toString());
		Factory.createToffoli(0,1,2).apply(r);
		r.normalise();
		System.out.println(r.toString());
		
		
	

	}

}
